import { Injectable } from '@nestjs/common';
import { JwtService } from './jwt.service';
import { UserService } from '../User/services/User.service';

@Injectable()
export class AuthService {

    constructor(private readonly userService: UserService,
        private readonly jwtService: JwtService,
    ) { }

    // async createToken(user: { phone: string; id: number }) {
    //     return {
    //         expiresIn: user ? 1 : process.env.JWT_EXPIRATION_TIME || 3600,
    //         accessToken: user ? await this.jwtService.sign(user) : undefined
    //     }
    // }



}
